package com.warm.spring.resource;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Description 获取指定节点的配置文件
 * @Author iyb-liangchuang
 * @Date 2021/5/14 9:03
 */
@Data
@Configuration
@ConfigurationProperties(prefix = ConfigProperties.CONFIG_PREFIX)
public class ConfigProperties {

    public static final String CONFIG_PREFIX = "server";

    private String port;
}
